<template>
  <div id="bottom">
    <van-tabbar v-model="flag">
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/search">搜索</van-tabbar-item>
      <van-tabbar-item icon="records" to="/order">订单</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/mine">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "bottom",
  props: {
    active: Number,
  },
  data() {
    return {
      flag: this.active,
    };
  },
};
</script>

<style>
</style>